Skip to content

Conversation

@patricijabrecko
Copy link
Contributor

Summary

This pull request adds documentation and implementation details for invoking functions within DevRev Snap-Ins. The changes include updates to the devrev-snapin-template.plain file and the creation of a new docs/function_invocation.mdx file, providing developers with clear guidelines on function invocation and the run method's structure.

Work item: https://app.devrev.ai/devrev/works/ISS-190744

Copilot AI review requested due to automatic review settings July 8, 2025 07:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive documentation for invoking functions in DevRev Snap-Ins and updates the snap-in template to reference the new docs.

  • Defines the run method signature, context types, and return behavior in function_invocation.mdx.
  • Links the function invocation guide from the devrev-snapin-template.plain.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/function_invocation.mdx New docs outlining the run signature, input types, and behaviors.
devrev-snapin-template.plain Added a reference to the function invocation documentation.
Comments suppressed due to low confidence (1)

docs/function_invocation.mdx:49

  • TypeScript array type syntax is incorrect; use FunctionInput[] instead of []FunctionInput.
async function run(events: []FunctionInput): any;

@patricijabrecko patricijabrecko merged commit 65ea88c into main Jul 10, 2025
2 checks passed
@patricijabrecko patricijabrecko deleted the function-invocation branch July 10, 2025 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants